home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_2 / nc_b12.zip / SYSOP.DOC < prev    next >
Text File  |  1992-02-02  |  16KB  |  337 lines

  1.  
  2.    ╒═══════════════════════════════════════════════════════════════╕
  3.    │                                                               │
  4.    │               ╔════                                           │
  5.    │               ║                                               │
  6.    │               ╚═══╗     ║       ║                             │
  7.    │                   ║ ║ ║ ╠═╗ ═╦═ ║                             │
  8.    │               ════╝ ╚═╣ ╚═╝ ═╩═ ╚═ WARE                       │
  9.    │                       ║  by boB Gage                          │
  10.    │                     ══╝  Available on Sybil BBS               │
  11.    │                          (703) 951-2708  HST DS               │
  12.    │                                                               │
  13.    │          S Y S O P   D O C U M E N T A T I O N                │
  14.    ╘═══════════════════════════════════════════════════════════════╛
  15.  
  16.  
  17.  
  18. ========================[  Setting Up NameChng  ]========================
  19.  
  20. In ALL batch files, NameChng and NameChk should ALWAYS be called from the same
  21. directory.  The smaller this directory, the faster NameChk will run, so I
  22. suggest using a seperate directory for NameChng.  This directory will be used
  23. for flag and save files.  You should NEVER delete any *.SNC or *.ALI file from
  24. this directory!!!!  This directory SHOULD NOT be on a RAM drive or other
  25. easily lost storage device.  Using a RAMdrive VIRTUALLY GUARANTEES eventual
  26. corruption of your USERS file, locking a user into their alias until you
  27. manually restore them (see BETA.DOC for details)
  28.  
  29. Setting up NameChng is a 5 to 9 step process:
  30.  
  31. 1) Write the batch file (or files) to run the door
  32. 2) Include the batch file(s) in your DOORS.DAT file
  33. 3) Make the alias text file
  34. 4) Modify or create $$LOGOFF.BAT files for each node  (NameChk)
  35. 5) Modify NameChng.CFG to suit your needs
  36. 6) Optionally modify the various TXT files
  37. 7) Optionally add NameIndx to your event
  38. 8) Optionally modify and add User Bulletin to your bulletin list
  39. 9) Optionally modify and add HLPName to your PCB Help directory
  40.  
  41.  
  42. 1) - Write the batch file (or files) to run the door
  43.  
  44. There are two options for setting up your door batch files.  You can have a
  45. single door that the user calls with a parameter of either REAL or ALIAS (ie
  46. NameChng Alias to get into the alias and  NameChng Real to switch back) OR
  47. You can set up two doors, one to enter the alias and one to leave it.
  48. Personally I'm using both approaches with different alias files; a single
  49. batch, Name, calls using my adult & "other" aliases file, and two batches,
  50. D&D and LeaveD&D, operate using my D&D players/characters alias file.
  51.  
  52. Note that using the two batch file option locks the user away from the REQUEST
  53. and SHOW commands, as well as any commands later added.
  54.  
  55. The format for calling NameChng.EXE is:
  56.     NameChng  <file> ALIAS  [#]            -  change to alias name
  57.     NameChng  <file> REAL                  -  change to real name
  58.     NameChng  <file> REQUEST Alias Name    - request alias
  59.     NameChng  <file> VERIFY Alias Name conference mask
  60.                                            - sysop only, verify alias
  61.     NameChng  <file> REJECT Alias Name     - sysop only, reject alias
  62.     NameChng  <file> SHOW                  - show aliases
  63.  
  64. The first two parameters are required!  <file> is the alias text file,
  65. discussed below.   The second parameter is the command NameChange is to
  66. execute, and these commands ARE configurable in the NameChng.CFG file.
  67.  
  68. An OPTIONAL parameter is used on the ALIAS line to implement multiple
  69. aliases.  If a number is given here, it is the alias number to use.  For
  70. example, if a person had three aliases defined on your system (all with the
  71. same real name), he could switch to the third one with NameChng Alias 3.
  72.  
  73. The single batch file, Name, looks like this:
  74. o:
  75. CD \NAMECHNG
  76. NAMECHNG  ADULTS %PCBDOOR%
  77. exit             ^^^^^^^^^^ that's PCB's command stack variable
  78.                             which should include either REAL or ALIAS
  79.                             and an optional numeric parameter OR
  80.                             the word REQUEST and the desired alias
  81.                             OR any other valid NameChange command.
  82.  
  83.  
  84. The D&D conference batch files look like this:
  85.  
  86. File: D&D
  87. o:
  88. cd \namechng
  89. namechng DNDPLAY Alias
  90. exit                   ^^^^^  Notice the dropped 3rd parameter, it
  91.                               uses first alias encountered in file
  92.                               by default.  Including %PCBDOOR%
  93.                               here would enable players with 2
  94.                               or more characters to switch
  95.                               between names by typing D&D #,
  96.                               where # is the character number.
  97. File: LEAVED&D
  98. o:
  99. cd \namechng
  100. namechng DNDPLAY Real
  101. exit
  102.  
  103.  
  104. Notes:  When using the two batch file method described above, you lose the
  105. ability for the REQUEST, VERIFY, and REJECT commands unless you install
  106. seperate batch files for these as well (not suggested).  In this case, modify
  107. the NOALIAS.TXT file to tell the user the proper alias registration method
  108. (ie C)omment to sysop).
  109.  
  110.    Using the single batch file method gives you complete access to all
  111. existing and possible future commands through the %PCBDOOR% environment
  112. variable.
  113.  
  114. 2) - Include the batch files in your DOORS.DAT file
  115.  
  116. After setting up your batch files, add NameChng to your PCBoard door
  117. directories.  NameChng does NOT need any extra files, but should be set up as
  118. a SHELL door, your DOORS.DAT line will look similar to this:
  119.  
  120. Name,,42,0,0,P:\DOORBATS\,0,Y
  121.          ^^^               ^^^  Shell door!!  Should be YES
  122.          NO USERS.SYS/DOOR.SYS!!
  123.  
  124.  
  125.  
  126. 3) - Make the alias text file
  127.  
  128. The alias files used by NameChng determine who gets what aliases and which
  129. conferences they are allowed in.
  130.  
  131. Here is a sample with comments:
  132.  
  133.          1         2         3        4          5         6
  134. 123456789012345678901234567890123456789012345678901234567890
  135. <Top of File>
  136. !D  27 28           ; Defines group D, conferences 27 & 28 only
  137. !A 56-65 55         ; Defines group A, conference 55-65, 56 is "home"
  138. GEORGE JOHNSON           FISTANTALUS              D      ; Group D alias
  139. TERRY HEIGHT             PRATAR                   D
  140. FISTANTALUS              WILLIAM SMITH                   ; unrestricted alias
  141. CYNTHIA MURRELL          GWYN AP RHYS             D
  142. MARC ZALDIVAR            BOLARON                  D
  143. CHUCK HEIM               BART                     A      ; Group A alias
  144. ROBERT JARRETT           NITEBREED                A
  145. GEORGE STEVENS           RICH MOORE
  146. CHARLIE MOODY            MR. DUDE                 A
  147. MARY STEWART             DAMNIT JANET!            A 23 24  ; Group A + 23 & 24
  148. <End of File>
  149.  
  150. All comments above begin with semi-colons and should NOT be included in the
  151. file used online!
  152.  
  153. The alias file has two types of lines, any line begining with an exclamation
  154. point followed by a letter defines a group of conferences so that it can be
  155. referred to later easily.  In the above example, I defined two groups, D for
  156. D&D characters restricted to the D&D conferences, and A for adult aliases
  157. restricted to ThrobNet.
  158.  
  159. Other lines are real names in columns 1 thru 25, alias name in 26 thru 50, and
  160. conferences allowed starting in column 51.  The first conference allowed (the
  161. "home" conference) will be joined when the alias is assumed.  The group
  162. letters eliminate the need to type the conference numbers over and over, all
  163. aliases marked with a D above can ONLY be used in conferences 27 & 28, and the
  164. user will by joined in 27 when entering the alias.  The ones marked by A are
  165. limited to 55-65, and are joined in conference 56 (THAT's why 55 is listed
  166. last in the series, to make 56 the "home" conference).
  167.  
  168. An alias WITHOUT a conference lockout will be allowed in all conferences (as
  169. in George Stevens' case above).  Additional conferences can be allowed to
  170. individual users on a case-by-case basis (see Mary Stewart's access to
  171. conferences 23 & 24 as Damnit Janet!).
  172.  
  173. Multiple aliases are simple to set up, but are only supported in the
  174. registered version of the program.  Simply have several lines in your alias
  175. file with the same real name.  The user can differentiate between aliases by a
  176. numeric parameter.  The first alias encountered in the file is #1, the second
  177. #2, etc.  If using the one batch file method, no special changes are needed to
  178. implement multiple aliases, but if using the two batch file method, the
  179. %PCBDOOR% variable should be added to the ALIAS call to NameChng.
  180.  
  181. Trying to get around registering by listing an alias as a real name (ie giving
  182. the alias an alias) WILL lock up the system when the user runs NameChange.
  183. NameChange will find his name as an alias, and change to his "real" name, and
  184. then start searching the alias file again.  This will go on forever and ever.
  185. This wasn't an intentional lock on the multiple aliases, it was a side effect
  186. of being able to switch from alias to alias without going back to your real
  187. name in between.
  188.  
  189.  
  190. 4) - Modify or create $$LOGOFF.BAT files for each node
  191.  
  192. NameChk should be called in the $$LOGOFF.BAT file, and will restore the user's
  193. name & conference registrations back to normal.  The ALL parameter is included
  194. to call from the nightly event and change all users back regardless of node
  195. number.  This is not to replace the call in the $$LOGOFF file, but to catch
  196. user's who may have crashed the system and cause $$LOGOFF not to run.  If
  197. multiple alias files are used, you should call NameChk once for each file.
  198. This is a small and fast file, so calling it a few times will still be pretty
  199. quick. (I get 2 sec runs on a 386 and 6 sec on an XT)
  200.  
  201. The format for calling NameChk.EXE is:
  202.      NameChk  <file> <PCB node number>
  203.      NameChk  <file> ALL  ****  ALL is not yet implemented!
  204.  
  205. Make sure that NameChng and NameChk are ALWAYS run from the same directory, as
  206. it uses save files to store conference registrations and alias flags.  For
  207. this reason, NameChng should NOT be run off of a RAMdrive unless you're
  208. willing to risk USERS file damage in the case of a reboot.
  209.  
  210. ****  Beta Test Version - ALL parameter is not yet implemented, so IF NameChk
  211. call is used in event, it should be done once for each node number.
  212. [Personally I'm not running it in the event at all, if the $$LOGOFF doesn't
  213. get them the first time, it will the second, and NameChk is set up to change
  214. back ALL aliases from the current node, it doesn't assume just one alias]
  215.  
  216.  
  217. 5) - Modify the NameChng.CFG file to suit your needs
  218.  
  219.    The NameChng.CFG file contains configuration & options information about
  220. your setup that all the NameChange programs use.  The file is a simple text
  221. file, the format is shown below:
  222.  
  223. Line 1:  Name of BBS
  224. Line 2:  Registration Number (or blank)
  225. Line 3:  Path to your PCB\MAIN directory (USERS,CALLER,et al)
  226. Line 4:  Should message be sent to Sysop when user REQUESTs alias?  Y/N
  227. Line 5:  Should message be sent to the User when sysop changes alias? Y/N
  228. Line 6:  Path & File name of Msgs file to log messages to
  229. Line 7:  Should the "Thanks for reistering" line be suppressed from messages?
  230. Line 8:  User ALIAS command       Lines 8- 13 are optional
  231. Line 9:  User REAL command          if left blank, will default to ALIAS,
  232. Line 10:  User REQUEST command       REAL, REQUEST, VERIFY, REJECT, and SHOW.
  233. Line 11: User VERIFY command
  234. Line 12: User REJECT command
  235. Line 13: User SHOW command
  236.  
  237. The name of your BBS on line 1 must EXACTLY match the name you gave me
  238. for verification or your registration code WILL NOT work.  It IS case
  239. sensitive.  Changing lines 8 thru 13 gives you the ability to completely
  240. customize NameChange to your own needs.  Each line contains a single
  241. word command that the user types to activate that particular function.
  242. ie, by putting FAKE on line 8, you make the command to change to an
  243. alias NAMECHNG FAKE instead of NAMECHNG ALIAS.
  244.  
  245.  
  246.  
  247. 6) - Optionally modify the various TXT files
  248.  
  249. ALL of NameChng's user displays are in text files that must reside in the
  250. NameChng directory.  These fully support PCB's @ commands (especially
  251. considering that it's PCBoard that displays them) and can be modified at your
  252. discretion.  The files are:
  253.  
  254.     BADPARAM.TXT - Shown if the parameters given are not correct
  255.     NOALIAS.TXT  - Shown if the user is not listed as a real name or if
  256.                    an alias number beyond those defined is used (ie asking
  257.                    for the third alias when the user only has two)
  258.     ALIAS.TXT    - Shown when the user has been put into the alias
  259.     REAL.TXT     - Shown when the user has been changed to real name
  260.     REQUEST.TXT  - Shown when the user requests an alias
  261.     NOTREG.TXT   - Shown if user is not registered in alias's home conf
  262.  
  263. NameChng will add a single door identification line at the end of the TXT file
  264. when it is displayed.   A blank line will be added before it.
  265.  
  266. Other text files used by NameChange are the MSG files which are the messages
  267. sent to the user when a VERIFY or REJECT is used.
  268.  
  269.    APPROVE.MSG  - Message sent on approval
  270.    REJECT.MSG   - Message sent when alias rejected
  271.  
  272. Each message is preceeded by "The sysop has APPROVED [REJECTED] your alias of
  273. xxxxxxxx" and a blank line.
  274.  
  275.  
  276. 7) - Optionally add NameIndx to your event
  277.  
  278. NameIndx is a "trade-off" utility.  A side effect of aliasing on PCBoard is
  279. that messages TO an alias don't cause the mail flags to be set, and also cause
  280. the user to get a "So and so not found, (C)ontinue, (R)etype, ..." error
  281. unless the conference is declared as an ECHO conference.  And even then, the
  282. user has to answer the "Echo message?" prompt, even though the conference may
  283. be local.
  284.  
  285. NameIndx solves that problem by re-building the PCBNDX files with additional
  286. entries from your alias files.  See NameIndx.DOC for documentation on setting
  287. up NameIndx.
  288.  
  289. The reason NameIndx is called a trade-off is that if you do use it, it solves
  290. the problems with mail flags and with message entry.  But there is a side
  291. effect that may confuse your users.  A user will be able to log on using their
  292. alias name, which may lead them to believe they are logged on AS their alias,
  293. but they will really be in their real name.  NameIndx makes multiple
  294. references to the same user record, and PCBoard gets the user name from the
  295. record, NOT from the answer to the logon prompt.
  296.  
  297. So, you decide which problem you want, the mail flags & msg entry problem OR
  298. the logon side-effect.  Personally I feel that NameIndx is the way to go, but
  299. know that others may feel differently, so I left it as a completely seperate
  300. program.
  301.  
  302. 8)  -  Optionally Modify and add User Bulletin to your bulletin list
  303.  
  304. The User bulletin (USER.BLT) explains to your users how to operate
  305. NameChange on your system.  Since every system can have a different
  306. setup, some things may need to be modified on your system.
  307.  
  308. Some typical global changes that may be made:  (EXACT case matches only)
  309.    NAME    - name of the door file to call NameChng
  310.    ALIAS   - your defined ALIAS command
  311.    REAL    - your defined REAL command
  312.    SHOW    - your defined SHOW command
  313.    REQUEST - your defined REQUEST command
  314.  
  315. It is suggested that you add the bulletin in the Main Board AND use the Help
  316. file below.  Otherwise, the user may find themselves in their alias and not
  317. able to get to the docs to figure out how to get back again.
  318.  
  319. 9)  -  Optionally modify and add HLPNAME to PCB\HELP directory
  320.  
  321. Adding this file to your PCB\HELP directory will give users the ability
  322. to type H NAME and have the file displayed to them.  This will give them
  323. help anywhere on the board, no matter what name they are in.  You need
  324. to rename the file to NAME (if you want H NAME to retrieve it) after you
  325. move it.  If you change the name of the door batch file, you should
  326. change the help file name to match it.
  327.  
  328. You should make the same Global, EXACT case match changes in this file
  329. as you made in the User Bulletin above if you have changed either the
  330. name of the door file or any of the command keywords.
  331.  
  332. ---
  333.  
  334. Think that's about it, if you have any problems, I can be contacted at Sybil
  335. BBS (703) 951-2708 HST/v32 or through the ThrobAdmin conference on ThrobNet or
  336. the Sysop, Shareware, or Laptop conferences on U'NI-Net/US.
  337.